//
//  ArqMisc.h
//  arq
//
//  Created by xiao wen on 15/1/20.
//  Copyright (c) 2015年 witsi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DataTransmitImp.h"

@interface ArqMisc : NSObject{
@private
    void *pCppObj;
}

- (id)initWith:(DataTransmitImp*)dataTransmit;

-(int) buzzerCtlRepeat:(int)repeat  onTime:(int)ontime offTime:(int)offtime;
-(int) ledId:(int)_id on:(int)onoff;
-(int) setDate:(NSString*)date;
-(int) setDateWithOutPermission:(NSString*)date;
-(NSString*) getDate;
-(int) getRnd:(NSData**)rnd len:(int)len;
-(int) readNvSramOffset:(int)offset len:(int)len returnBuffer:(NSData**)rbuf;
-(int) writeNvSramOffset:(int)offset  len:(int)len returnBuffer:(NSData*)wbuf;
-(int) getSystemInfoIndex:(int)index returnBuffer:(NSData**)rbuf;
-(int) setSystemInfoKey:(int)key value:(int)value;
-(int) enterCmdMode;
-(int) getRdpVer:(NSData**)ver;
-(int) echoWithOutPermissionTimeout:(int)timeout;

//class ArqMisc
//{
//public:
//	(int)buzzerCtl((int)repeat, (int)ontime, (int)offtime);
//	(int)led((int)id, (int)onoff);
//	(int)setDate(string date);
//	(int)setDateWithOutPermission(string date);
//	byte * getDate();
//	(int)getRng(byte* rng, (int)len);
//	(int)readNvSram((int)offset, (int)len, byte * rbuf);
//	(int)writeNvSram((int)offset, (int)len, byte* wbuf);
//	(int)getSystemInfo((int)index, byte * rbuf);
//	(int)setSystemInfo((int)key, (int)value);
//	(int)enterCmdMode();
//	(int)getRdpVer(byte * ver);
//	(int)echoWithOutPermission((int)timeout);
//};

@end